package com.jie.langlangmall.model;

import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

@Setter
@Getter
public class PmsProductFullReduction implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    private Long id;
    private Long productId;
    private BigDecimal fullPrice; // 满足满减的价格
    private BigDecimal reducePrice; // 满减之后减少的价格

    @Override
    public String toString() {
        return getClass().getSimpleName() +
                " [" +
                "Hash = " + hashCode() +
                ", id=" + id +
                ", productId=" + productId +
                ", fullPrice=" + fullPrice +
                ", reducePrice=" + reducePrice +
                ", serialVersionUID=" + serialVersionUID +
                "]";
    }
}